# while  break continue

# 打印5遍hello python
i = 1
while i <= 5:
    print("hello")
    i += 1  # i=i+1

# 0-100求和
i = 0
num = 0
while i < 100:
    # print(i)
    i = i + 1
    num = num + i
print("1-100求和为%d" % num)

# 100以内的偶数求和
i = 0
num = 0
while i <= 100:
    if i % 2 == 0:
        print(i)
        num = num + i
    i += 1
print("1-100的偶数求和为%d" % num)

# 打印五行星号
i = 0
while i < 5:
    i = i + 1
    print('*' * i)

# 九九乘法表
i = 0
while i <= 9:
    k = 0
    while k < i:
        k = k + 1
        m = k * i
        print(k, "*", i, "=", m, end="   \t")
    # print("%d * %d = %d " %(k,i,m),end="   \t")
    i = i + 1
    print("")
